package cn.tedu;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Scanner;

public class Demo12 {
    public static void main(String[] args) throws SQLException {
        Scanner scanner=new Scanner(System.in);
        System.out.println("输入用户名");
        String username=scanner.nextLine();
        System.out.println("输入密码");
        String password=scanner.nextLine();
        System.out.println("输入名称");
        String nick=scanner.nextLine();
        try (Connection conn = DBUtils.getConn()) {

            System.out.println("注册成功");
        }catch (SQLException throwables){
            throwables.printStackTrace();
        }
    }
}
